<?php
class TestController extends AppController {
	public $title = 'Testfenster';
	
	function start() {	
		$buttons = array(	'Save', 
							'Quit' => 'quit', 
							'Close' => array('clicked' => 'closeIt'),
							'Do' => array('clicked' => array('doit', 1, 2, 3)),
						);
		$buttons = $this->View->buttonSet($buttons, 'horizontal');
		
		$this->widgets[] = $buttons;       

		$this->autoRender = false;

		App::import('Core', 'gul2/Gul');
		$widgets = GulParseFile(VIEWS . 'test/main.xul');
		Gtk::main();
	}
		
}
?>